package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.service.HouOwerServiceImpl;
import com.sun.javafx.collections.MappingChange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName HouOwerControlloer
 * @date 2020/2/17 14:59
 * @description: TODO
 */

@Controller
@RequestMapping("/HouOwer")
public class HouOwerController {

    @Autowired
    HouOwerServiceImpl houOwerService;

    /**
     * 收房合同信息统计表
     * @param params
     * @param pager
     * @return
     */
    @PostMapping("/getHouOwer")
    @ResponseBody
    public JsonResult getHouOwer(@RequestBody Map<String,Object> params, Pager pager){
        return houOwerService.getHouOwer(params,pager);

    }

    /**
     * 出租率平均房价表
     */
    @PostMapping("/HouRental")
    @ResponseBody
    public JsonResult HouRental(@RequestBody Map<String,Object> params,Pager pager){
        return houOwerService.HouRental(params,pager);
    }



    /**
     * 出租合同基础表
     */
    @PostMapping("/RentHouList")
    @ResponseBody
    public JsonResult RentHouList(@RequestBody Map<String,Object> params,Pager pager){
        return houOwerService.RentHouList(params,pager);
    }


    /**
     * 新签平均房价/空值天数统计表
     */
    @PostMapping("/getPactqianList")
    @ResponseBody
    public JsonResult getPactqianList(@RequestBody Map<String,Object> params,Pager pager){
        return houOwerService.getPactqianList(params,pager);
    }




}
